from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from apps.meiduo_admin.serializers.brands import BrandSerializer
from apps.meiduo_admin.utils import PageNum
from apps.goods.models import Brand






#############获取品牌
class BrandView(ModelViewSet):
    #指定序列化器
    serializer_class = BrandSerializer
    #指定查询集
    queryset = Brand.objects.all()
    #指定分页器
    pagination_class = PageNum